CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(CMAKE_CXX_COMPILER      g++)
SET(CMAKE_CXX_FLAGS         "-g3 -Wall -fPIC -std=c++11")
SET(LIBRARY_OUTPUT_PATH     ${PROJECT_SOURCE_DIR}/Lib)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/../LFC/Include)

SET(SOURCE_FILES
    Source/Redis.cpp
    Source/RedisReply.cpp
    Source/RedisFactory.cpp
    Source/MasterSlaveRedis.cpp
)

SET(INCLUDE_FILES
    Include/Redis.h     
    Include/RedisReply.h
    Include/RedisFactory.h
    Include/TypeDef.h
    Include/MasterSlaveRedis.h
)	     

ADD_LIBRARY(Redis STATIC ${SOURCE_FILES} ${INCLUDE_FILES})
